package cn.cqnu.global;

public class SystemConstant {


    /**
     * json令牌密钥
     * 签名加密HS256, 秘钥为 638D965456A43AAE25C136F6BF816085 ("cqnu" 通过 md5机密)
     */
    public static final String JSON_TOKEN_SECRET_KEY="638D965456A43AAE25C136F6BF816085";

    /**
     * JWT过期
     */
    public static final Long JSON_TOKEN_EXPIRATION = 60L * 60 * 24;

    /**
     * captcha长度
     */
    public static final String CAPTCHA_LENGTH = "4";

    /**
     * 验证码在redis中的有效期(s)
     */
    public static final int CAPTCHA_TIME_TO_LIVE = 180;


    /**
     * 类型学生
     */
    public static final Integer TYPE_STUDENT = 0;

    /**
     * 类型admin
     */
    public static final Integer TYPE_ADMIN = 1;

    /**
     * 阿里云中学生头像图存放文件夹路径
     */
    public static final String OSS_AVATAR_PATH = "StudentAvatar/";

    /**
     * 阿里云中比赛背景图存放文件夹路径
     */
    public static final String OSS_BACKGROUND_IMG_PATH = "MatchBackgroundImg/";

    /**
     * 阿里云中bucket名称
     */
    public static final String OSS_BUCKET = "match-manager";

    /**
     * 华北2(北京)服务器访问地址
     */
    public static final String OSS_ENDPOINT = "https://oss-cn-beijing.aliyuncs.com";
    public static final String OSS_ACCESSKEY_ID = "LTAI5tJG4vEz5bJDncbttVVM";
    public static final String OSS_ACCESSKEY_SECRET = "ETCSqJTZYXE84Dwix78WdIvsIsoDP3";

    public static final String OSS_VISIT_URL = "https://match-manager.oss-cn-beijing.aliyuncs.com/";
}
